package com.zx.test;

import com.zx.pojo.Equip;
import com.zx.pojo.Player;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.util.ArrayList;
import java.util.List;

public class test02 {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("application01.xml");

        Player player = (Player)context.getBean("zhangsan");
        List<Equip> equips = new ArrayList<>();
        equips.add(player.getLoricae());
        player.updateQuip(player.getRing());
    }
}
